home *** CD-ROM | disk | FTP | other *** search
- /*
- * Test Equipment Calls
- *
- */
- #include <\desmet\include\stdio.h>
-
- char *mode[]={
- "40x25 Black and White (Graphics)",
- ""
- "80x25 Black and White (Graphics)",
- "",
- "",
- "",
- "",
- "80x25 Black and White (Mono)"
- };
- main()
- {
- long MemSize();
- printf("\nThis Machine Has:\n");
- printf(" %dK Bytes Memory\n",MemSize()/1024);
- printf(" %d Printer Port(s)\n",equipment(1));
- printf(" %s\n",equipment(2)?"Game Port":"No Game Port");
- printf(" %d Serial Port(s)\n",equipment(3));
- printf(" %d Diskette Drive(s)\n",equipment(4));
- printf(" %d Fixed Disk Drive(s)\n",equipment(6));
- printf("Initial Video Mode:\n");
- printf(" %s\n",mode[equipment(5)]);
- }
-